//
//  JSKeyboardView.h
//  JigSaw
//
//  Created by mykoma on 15/3/2.
//  Copyright (c) 2015年 LITB. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "JSKeyboardFontCell.h"

typedef NS_ENUM(BOOL, KeyboardInputType)
{
    KeyboardInputTypeNormal = NO,
    KeyboardInputTypeFont   = YES,
};

@interface JSKeyboardViewModel : NSObject

// @see JSKeyboardFontCellModel
@property (nonatomic, strong) NSArray * fontCellModels;
@property (nonatomic, copy) NSString * inputText;

@end

@interface JSKeyboardView : UIView <UITableViewDataSource,UITableViewDelegate>

@property (nonatomic, strong) JSKeyboardViewModel * viewModel;

+ (JSKeyboardView *)keyboardView;
- (void)updateInputStatus:(KeyboardInputType)type;
- (void)updateSystemKeyboardRect:(CGRect)rect;
- (void)dismiss;
- (void)setContentText:(NSString*)string;
- (void)updatePosition:(BOOL)hideSystemKeyboard;

@property (nonatomic, copy) VOID_BLOCK_WITH_ID chooseColorBlock;
@property (nonatomic, copy) VOID_BLOCK_WITH_INTEGER chooseFontBlock;
@property (nonatomic, copy) VOID_BLOCK_WITH_INTEGER downloadFontBlock;
@property (nonatomic, copy) VOID_BLOCK_WITH_INTEGER cancelFontBlock;
@property (nonatomic, copy) VOID_BLOCK_WITH_ID textChangeBlock;
@property (nonatomic, copy) VOID_BLOCK_WITH_VOID xinqingBlock;
@property (nonatomic, copy) VOID_BLOCK_WITH_VOID okBlock;


@end
